
package org.yds.quality.model;

import java.util.List;
import java.util.Set;

public class RuleModel {

    private String id;
    private String funName;
    private String expression; // 表达式
    private String eventType; // 事件类型
    private Set<String> eventParams; // 事件所需的参数

    // Getter and Setter methods
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFunName() {
        return funName;
    }

    public void setFunName(String funName) {
        this.funName = funName;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public Set<String> getEventParams() {
        return eventParams;
    }

    public void setEventParams(Set<String> eventParams) {
        this.eventParams = eventParams;
    }

    // toString method
    @Override
    public String toString() {
        return "RuleModel{" +
                "id='" + id + '\'' +
                ", funName='" + funName + '\'' +
                ", expression='" + expression + '\'' +
                ", eventType='" + eventType + '\'' +
                ", eventParams=" + eventParams +
                '}';
    }
}